/**
 * 
 */
package com.autonavi.car.si.FileStore.util;


/**
 * 
 * @COMMENT:
 * @author KUCHENG.LIAO@AUTONAVI.COM
 * @DATE May 12, 2014
 * 
 */
public final class StringUtil {

	public static boolean isEmpty(String str) {
		return null == str || str.trim().equals("");
	}

	public static boolean isNotEmpty(String str) {
		return !isEmpty(str);
	}
	public static boolean isStringArrayEmpty(String[] ss) {
		if (null == ss || ss.length == 0) {
			return true;
		}
		return false;
	}

	public static boolean isOneStringEmpty(String... s) {
		boolean result = isStringArrayEmpty(s);
		if (result) {
			return result;
		}
		for (String each : s) {
			if (isEmpty(each)) {
				return true;
			}
		}
		return false;
	}
	

}
